﻿using ERPSystem.Common.BaseEntitys;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERPSystem.Common.Domains.UserCommon
{
    /// <summary>
    /// 角色表
    /// </summary>
    [SugarTable("Roles")]
    public class Roles : BaseEntity
    {

        /// <summary>
        /// 角色ID (主键，自增，不可为空)
        /// </summary>
        [SugarColumn(IsIdentity =true,IsPrimaryKey =true)]
        public int RolesId { get; set; }
        

        /// <summary>
        /// 角色名称 (可空)
        /// </summary>
        [SugarColumn(ColumnDataType ="Nvarchar(100)", IsNullable = true)]
        public string RoleName { get; set; }

       
        /// <summary>
        /// 描述 (可空)
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string Description { get; set; }
    }
}
